﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Net_SCADA
{
    public partial class Form_Exit : Form
    {
        public int formLanguageIndex { get; set; } = -1;
        public Form_Exit()
        {
            InitializeComponent();
        }

        private void btn_Exit_Click(object sender, EventArgs e)
        {
            Application.ExitThread();
        }

        private void btn_Cancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void Form_Exit_Load(object sender, EventArgs e)
        {

        }

        private void Form_Exit_Activated(object sender, EventArgs e)
        {
            if (formLanguageIndex != MultipleLanguage.systemLanguageIndex) MultipleLanguage.switchLanguage(this);
        }
    }
}
